package com.ruoyi.system.domain;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Size;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 宠物名称对象 pet_name
 * 
 * @author ruoyi
 * @date 2025-08-30
 */
public class PetName extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 名称ID */
    private Long nameId;

    /** 分类ID */
    @Excel(name = "分类ID")
    private Long categoryId;

    /** 名称值 */
    @Excel(name = "名称值")
    private String nameValue;

    /** 名称编码 */
    @Excel(name = "名称编码")
    private String nameCode;

    /** 排序 */
    @Excel(name = "排序")
    private Integer sortOrder;

    /** 状态（0正常 1停用） */
    @Excel(name = "状态", readConverterExp = "0=正常,1=停用")
    private String status;

    /** 删除标志（0代表存在 2代表删除） */
    private String delFlag;

    /** 分类名称（关联查询字段） */
    private String categoryName;

    public void setNameId(Long nameId) 
    {
        this.nameId = nameId;
    }

    public Long getNameId() 
    {
        return nameId;
    }

    public void setCategoryId(Long categoryId) 
    {
        this.categoryId = categoryId;
    }

    public Long getCategoryId() 
    {
        return categoryId;
    }

    @NotBlank(message = "名称值不能为空")
    @Size(min = 0, max = 100, message = "名称值不能超过100个字符")
    public void setNameValue(String nameValue) 
    {
        this.nameValue = nameValue;
    }

    public String getNameValue() 
    {
        return nameValue;
    }

    @NotBlank(message = "名称编码不能为空")
    @Size(min = 0, max = 50, message = "名称编码不能超过50个字符")
    public void setNameCode(String nameCode) 
    {
        this.nameCode = nameCode;
    }

    public String getNameCode() 
    {
        return nameCode;
    }

    public void setSortOrder(Integer sortOrder) 
    {
        this.sortOrder = sortOrder;
    }

    public Integer getSortOrder() 
    {
        return sortOrder;
    }

    public void setStatus(String status) 
    {
        this.status = status;
    }

    public String getStatus() 
    {
        return status;
    }

    public void setDelFlag(String delFlag) 
    {
        this.delFlag = delFlag;
    }

    public String getDelFlag() 
    {
        return delFlag;
    }

    public void setCategoryName(String categoryName) 
    {
        this.categoryName = categoryName;
    }

    public String getCategoryName() 
    {
        return categoryName;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("nameId", getNameId())
            .append("categoryId", getCategoryId())
            .append("nameValue", getNameValue())
            .append("nameCode", getNameCode())
            .append("sortOrder", getSortOrder())
            .append("status", getStatus())
            .append("remark", getRemark())
            .append("delFlag", getDelFlag())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .toString();
    }
}